home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / C Internet Config / IC Component Source ƒ / IC Resource ƒ / Syslog Component ƒ / syslog.man < prev    next >
Encoding:
Text File  |  1995-11-09  |  8.9 KB  |  27 lines  |  [TEXT/R*ch]

  1.  syslog(3C)                                                       syslog(3C)
  2.  
  3.  NAME
  4.       syslog(), openlog(), closelog(), setlogmask() - control system log
  5.  
  6.  SYNOPSIS
  7.       #include <syslog.h>
  8.  
  9.       int syslog(int priority, const char *message, int parameters, ...);
  10.  
  11.       int openlog(const char *ident, int logopt, int facility);
  12.  
  13.       int closelog(void);
  14.  
  15.       int setlogmask(int maskpri);
  16.  
  17.  DESCRIPTION
  18.       syslog()       writes a message onto the system log maintained by
  19.                      syslogd (see syslogd(1M)).  The message is tagged with
  20.                      priority.  The message is similar to a printf(3S)
  21.                      format string except that %m is replaced by the error
  22.                      message associated with the current value of errno.  A
  23.                      trailing newline is added if needed.
  24.  
  25.                      This message is read by syslogd and written to the
  26.                      system console, log files, selected users' terminals,
  27.                      or forwarded to